<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@ include file="../common/include/header.jsp" %>

<div style="width: 980px;">
<table border="0" cellpadding="0" cellspacing="0" width="980px">
	<tr>
		<td style="width: 180px;vertical-align: top;background:  #fdb73a;">
			<%@include file="../common/include/leftmenu.jsp" %>
		</td>
			<html:form action="/databoard" enctype="multipart/form-data">
		<td style="vertical-align: top;width: 800px;">
			<%@include file="logo.jsp" %>
			<div class="boardname" style="text-align: center;"><bean:write name="dataForm" property="dbname"/></div>
				<input type="hidden" name="method" value="modify"/>
				<input type="hidden" name="cono" value="<bean:write name="dataForm" property="cono"/>"/>
				<input type="hidden" name="dbname" value="<bean:write name="dataForm" property="dbname"/>"/>
				<input type="hidden" name="dbno" value="<bean:write name="dataForm" property="dbno"/>"/>
				<table border="0" cellpadding="0" cellspacing="0" width="700px" align="center">
					<tr><td style="width: 100px; text-align: center;height: 20px;">작성자</td>
						<td><bean:write name="user" property="mcnick"/></td></tr>

					<tr><td style="width: 100px; text-align: center;height: 20px;">제　목</td>
						<td><html:text property="dbtitle" style="width: 600px;"></html:text>
						</td></tr>
					
					<tr><td colspan="2" style="width:700px; height: 400px">
							<textarea name="dbcontent" rows="20" cols="80">
								<bean:write name="dataForm" property="dbcontent"/>
							</textarea> 
						</td></tr>
						
					<tr><td style="width: 100px; text-align: center;height: 20px;">첨부파일</td>
						<td align="left">
							 <!-- 
							<input type="text" name="file_v" value="" style="width: 340px;"/>
								<img src="<%=imagePath %>icon_search.jpg" style="cursor: hand;"
									onclick="document.dataForm.file.click();"/>
							<input type="file" name="file" style="display: none;" onchange="document.dataForm.file_v.value=document.dataForm.file.value"/>
								 
							<html:file property="file" style="width: 580px;display: none;"
									onchange="document.dataForm.file_v.value=document.dataForm.file.value"/>
									-->

							<html:file property="file" style="width: 580px;"/>

						</td></tr>
					<tr><td colspan="2" style="text-align: center;height: 20px;padding-top: 5px;">
							<html:link href="javascript: dataForm.submit();"><img src="<%=imagePath %>icon_confirm.jpg"/></html:link>
							<html:link href="javascript: goBack();"><img src="<%=imagePath %>icon_cancel.jpg"/></html:link>					
						</td></tr>							 
				</table>
			
		</td>
			</html:form>
	</tr>
</table>
</div>
<script type="text/javascript" src="<%=path%>/fckeditor/fckeditor.js"> </script>
<script type="text/javascript">
	
	window.attachEvent("onload", getfckeditor);
	 function getfckeditor(){
		var oFCKeditor = new FCKeditor('dbcontent') ;
		oFCKeditor.BasePath	= "<%=path%>/fckeditor/" ;
		oFCKeditor.ReplaceTextarea() ;
	}
	
</script>


<script type="text/javascript">
	function test(b){
		alert(b);
	}
	
	function goBack(){
		history.go(-1);
	}
</script>

<%@ include file="../common/include/footer.jsp" %>

